package cn.usian.jyzx.product.mapper;

import cn.usian.jyzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @Select("select * from category where parent_id = 0")
    List<Category> findall();
@Select("select * from category")
    List<Category> findCategoryTree();
}
